package homework.three;

public class Home {
    public int number;
    public double price;
    public double money;
    public Home(int number,double price){
        this.number=number;
        this.price=price;
    }
    public double add() {
        money=price*0.015;
        if (number>100){
            money=(price*0.015)*0.05+price*0.015;
        }
        return money;
    }
}
